import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app';
import {getProjectName} from './request'
const onShare = () => {
	onShareAppMessage(() => {
		return {
			title: getProjectName(),
			path: '/pages/login/login'
		}
	})

	onShareTimeline(() => {
		return {
			title: getProjectName(),
			path: '/pages/login/login'
		}
	});

	return { onShareAppMessage, onShareTimeline }
}

export default onShare;
